from django.db import models


# class IntegrateTask(models.Model):
#     '''积分任务'''
#
#     IS_NEED_AUTH_CHOICES = (
#         (0, '否'),
#         (1, '是')
#     )
#
#     ACTIVITY_STATUS_CHOICES = (
#         (1, '进行中'),
#         (2, '已结束'),
#         (3, '未开始'),
#         (4, '已暂停')
#     )
#
#     IS_WHITE_CHOICES = (
#         (0, '否'),
#         (1, '是')
#     )
#
#     ACTIVITY_TYPE_CHOICES = (
#         (1, '随机抽奖'),
#         (2, '大转盘抽奖(6扇)'),
#         (4, '大转盘抽奖(8扇)'),
#         (3, '随机码领取')
#     )
#
#     PRIZE_TYPE_CHOICES = (
#         (1, '随机奖励'),
#         (2, '固定奖励')
#     )
#
#     activity_id = models.CharField(verbose_name='活动名称', max_length=16, unique=True)
#     create_user = models.ForeignKey('users.User', verbose_name='添加人', on_delete=models.CASCADE)
#     activity_name = models.CharField(verbose_name='活动名称', max_length=32)
#     activity_description = models.TextField(verbose_name='活动使用说明')
#     activity_status = models.SmallIntegerField(verbose_name='活动状态', choices=ACTIVITY_STATUS_CHOICES, default=3, blank=True)
#     activity_type = models.SmallIntegerField(verbose_name='活动类型', choices=ACTIVITY_TYPE_CHOICES, default=1, blank=True)
#     prize_type = models.CharField(verbose_name='抽奖类型', max_length=8)
#     create_time = models.DateTimeField(verbose_name='创建时间', auto_now_add=True)
#     available_begin_time = models.DateTimeField(verbose_name='开始时间')
#     available_end_time = models.DateTimeField(verbose_name='结束时间')
#
#     class Meta:
#         db_table = 'tb_integrate_task'
#         verbose_name = '积分任务'
#         verbose_name_plural = verbose_name


# class IntegrateTaskAward(models.Model):
#     '''任务奖励'''
#
#     PRIZE_TYPE_CHOICES = (
#         (1, '支付宝代金券'),
#         (2, '微信代金券'),
#         (3, '微邮惠礼包'),
#         (4, '谢谢参与')
#     )
#
#     prize_type = models.SmallIntegerField(verbose_name='奖品类型', choices=PRIZE_TYPE_CHOICES, default=1, blank=True)
#     alidiscountcoupon = models.ForeignKey('vouchers.AliDiscountCoupon', verbose_name='是否中奖', on_delete=models.SET_NULL, null=True, blank=True)
#     cashactivity = models.ForeignKey('cashbonus.CashActivity', verbose_name='是否中奖', on_delete=models.SET_NULL, null=True, blank=True)
#     integratetask = models.ForeignKey('assignments.IntegrateTask', verbose_name='活动', on_delete=models.CASCADE)
#
#
#     class Meta:
#         db_table = 'tb_integrate_task'
#         verbose_name = '积分任务奖励'
#         verbose_name_plural = verbose_name
